var board1_obj = function ()
{
	this.empty = function (value)
	{
		switch (value)
		{
			case null:
				return true;
				break;
			case '':
				return true;
				break;
		}
		
		return false;
	}
	
	this.cookie = function ()
	{
		this.add = function (name, value, exp)
		{
			if (exp != null)
			{
				exp = parseInt(exp);
				
				var expire = new Date();
				expire.setTime(expire.getTime()+(exp*24*60*60*1000));
				
				expire = expire.toGMTSting();
			}
			
			if (name != null && value != null && expire != null)
				document.cookie = name+'='+value+'; expires='+expire+'; path=/';
				
			else if (name != null && value != null && expire == null)
				document.cookie = name+'='+value+'; path=/';
				
			else
				return false;
		}
		
		this.remove = function (name)
		{
			expired = new Date();
			expired.setTime(expired.getTime()+(-7*24*60*60*1000));
			
			expired = expired.toGMTString();
			
			if (name != null)
				document.cookie = name+'= ; expires='+epxired+'; path=/';
			else
				return false;
		}
		
		this.modify = function (name, value, exp)
		{
			
			if (exp != null)
			{
				exp = parseInt(exp);
				
				var expire = new Date();
				expire.setTime(expire.getTime()+(exp*24*60*60*1000));
				
				expire = expire.toGMTSting();
			}
			
			if (name != null && value != null && expire != null)
				document.cookie = name+'='+value+'; expires='+expire+'; path=/';
				
			else if (name != null && value != null && expire == null)
				document.cookie = name+'='+value+'; path=/';
				
			else
				return false;
		}
	}
}